package featuremodel.method;

import skyblue.Method;

public class MRequireCompositeMethodBind extends Method {
	private Method method1;
	private Method method2;

	public MRequireCompositeMethodBind(Method method1, Method method2) {
		this.method1 = method1;
		this.method2 = method2;
		getOutputs().addAll(method1.getOutputs());
		getOutputs().addAll(method2.getOutputs());

	}

	public void setTobeMethodType() {
		method1.setTobeMethodType();
		method2.setTobeMethodType();

	}

	public void clearTobeMethodType() {
		method1.clearTobeMethodType();
		method2.clearTobeMethodType();
	}

	public void setTobeMethodTyep2() {

		method1.setTobeMethodType2();
		method2.setTobeMethodType2();
	}

	public void clearTobeMethodType2() {
		method1.clearTobeMethodType2();
		method2.clearTobeMethodType2();
	}

	public void execute() {
		method1.execute();
		method2.execute();

	}

}
